/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package posjava2012.aula1.exercicios;

/**
 *
 * @author Antonio
 */
public class Cargo {
    private String nome;
    private double percentual;

    public Cargo() {
        nome = "";
        percentual = 0.0;
    }

    @Override
    public String toString() {
        return this.nome + " (" + percentual + "%)";
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public double getPercentual() {
        return percentual;
    }

    public void setPercentual(double percentual) {
        this.percentual = percentual;
    }

}
